<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@page import="com.taobao.askwho.po.UserInfo"%>
<%@page import="com.taobao.askwho.utils.session.SessionUtil"%>
<%@page import="java.util.Date"%>
<%
	//存住登陆信息
	UserInfo userInfo = SessionUtil.getUserInfo(request);
%>	
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a class="btn btn-navbar" data-toggle="collapse"
					data-target=".nav-collapse"> <span class="icon-bar"></span> <span
					class="icon-bar"></span> <span class="icon-bar"></span>
				</a> <a class="brand" href="<%= request.getContextPath()%>">问谁</a>
				<div class="nav-collapse">
					<ul class="nav">
					<!--  class="active" -->
						<li><a href="<%=request.getContextPath()%>">首页</a></li>
						<li><a href="<%=request.getContextPath()%>/urljump.do?method=gotoPersonPage">我的主页</a></li>
						<li><a href="<%=request.getContextPath()%>/urljump.do?method=gotoAboutusPage">关于问谁</a></li>
					</ul>
				</div>
				<!--/.nav-collapse -->
				<div class="btn-group pull-right">
					<%
						if(userInfo == null) {
					%>
					<a class="btn dropdown-toggle" href="<%=request.getContextPath()%>/loginopt.do?method=login&date=<%=new Date().getTime()%>">
					<i class="icon-user">&nbsp;</i>登录
					</a>
					<%							
						} else {
					%>
						<a href="<%=request.getContextPath()%>/urljump.do?method=gotoPersonPage"><%=userInfo.getUserEmail()%></a>
					<%										
						}
					%>
				</div>	
			</div>
		</div>
	</div>